<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="keywords" content="系统首页">
    <meta name="description" content="系统首页">
    <title>智慧光山入口平台</title>
    <link rel="stylesheet" href="plugin/bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/index_style.css">
    <link rel="stylesheet" href="plugin/slideBox/css/slideBox.css">
    <link rel="stylesheet" type="text/css" href="css/timeaxis.css">
    <!--
        <script type="text/javascript" src="plugin/jquery-3.2.1-dist/jquery.min.js"></script>
    -->
</head>
<body>
<!-- topbar -->
<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <div class="topbar">
                <div class="mc">
                </div>
            </div>
        </div>
    </div>
    <!-- navbar -->
    <div class="row" id="menu" >
        <div class="col-md-12">
            <div class="navbar1">
                <div class="mc">
                    <a class="logo"></a>
                    <div class="navmenu1">
                    </div>
                </div>
            </div>
            <!--<iframe name="content_iframe" marginwidth=0 marginheight=100 width=100% height=60px src="../listpage/index.html" frameborder=0 scrolling="no"></iframe>-->
        </div>
    </div>
    <!-- SlideBox -->
    <!--<iframe src="html/slide/index.html" width="100%" height="527px" frameborder="0" marginheight="0px"></iframe>-->
    <!-- News -->
    <div class="news">
        <div class="mc">
            <div class="row">
                <div class="col-md-5"><h3>行业动态</h3></div>
                <div class="col-md-7"><h3>新闻</h3></div>
            </div>
            <div class="row">
                <!-- 行业动态 -->
                <div class="col-md-5">
                    <p><a href=""><img src="img/20191029211423224.jpg" height="300" width="300"/></a></p>
                    <!--
                    <span>2019-11-12</span>
                    -->
                    <div class="p0"><h4>工信部：2020年大数据产业发展试点示范项目申报工作启动</h4></div>
                    <P class="p1">
                        11月12日，据工信部官网，为进一步落实《国务院关于印发促进大数据发展行动纲要的通知》和《大数据产业发展规划(2016-2020年)》，推进实施国家大数据战略，务实推动大数据技术、产业创新发展，工信部将组织开展2020年大数据产业发展试点示范项目申报工作...
                    </P>
                    <div class="p2"><a class="a1" href="">更多观点>></a></div>
                </div>
                <!-- 新闻 -->
                <div class="col-md-7" id = "news_list">
                    <div class="row">
                        <div class="col-md-12">
                            <div>更多新闻>></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Case -->

    <!-- TimeAxis -->
    <!-- footer -->
    <div class="footer">
        <ul class="mc mc-liststyle">
            <li class="col1">
                <h3>关于我们</h3>
            </li>
            <li class="col1">
                <div class="nav2">
                    <a href="/">首页</a>
                    <a href="/products/">产品解决方案</a>
                    <a href="/case/">成功案例</a>
                    <a href="/news/">新闻中心</a>
                    <a href="/service/">客户服务</a>
                    <a href="/about/company">关于我们</a>
                    <a href="/recruitment/">招贤纳士</a>
                    <a href="/a/CEO/">CEO观点</a>
                </div>
            </li>
        </ul>
    </div>
    <!-- CopyRight -->
    <div class="copyright">
        © 2019 - Copyright Hennan Founder CO.LTD - All Rights Reserved　,Designed by ZKY
    </div>


</div>

<script src="plugin/slideBox/js/jQuery2-1.js"></script>
<script type="text/javascript" src="js/index_js.js"></script>
<script type="text/javascript" src="plugin/slideBox/js/slideBox.js"></script>
<script type="text/javascript" src="js/timeaxis.js"></script>
<script type="text/javascript">
    $(function () {
        $.post("/webContent/content/list", { type: "1", pageNum: "1",pageSize:"3",orderByColumn:"contentTime",isAsc:"desc"},
            function(data){
                var html = getNewsHtml(data.rows[0])+getNewsHtml(data.rows[1])+getNewsHtml(data.rows[2]);
                $("#news_list").html(html);
            },"json");
        $.post("/getUserInfo", {},
            function(data){
                $("#gologin").html(data.loginName+"[注销]");
                $("#gologin").attr("href","/logout");
                /*$("#gologin").on("click",function () {
                    sessionStorage.clear();
                    window.location.href="/logout"
                })*/
            },"json");
    })
    function getNewsHtml(row) {
        var mon = parseInt(row.contentTime.substr(5,2));
        if(mon==1){
            mon = "一";
        }else if(mon==2){
            mon = "二"
        }else if(mon==3){
            mon = "三"
        }else if(mon==4){
            mon = "四"
        }else if(mon==5){
            mon = "五"
        }else if(mon==6){
            mon = "六"
        }else if(mon==7){
            mon = "七"
        }else if(mon==8){
            mon = "八"
        }else if(mon==9){
            mon = "九"
        }else if(mon==10){
            mon = "十"
        }else if(mon==11){
            mon = "十一"
        }else if(mon==12){
            mon = "十二"
        }
        return "<div class=\"row row-margin\">\n" +
        "                        <div class=\"col-md-3\">\n" +
        "                            <div class=\"span-date\">\n" +
        "                                <b>"+row.contentTime.substr(8,2)+"</b><br>\n" +
        "                                <i>"+mon+"月</i>\n" +
        "                            </div>\n" +
        "                        </div>\n" +
        "                        <div class=\"col-md-9\" onclick=\"window.open('news/news_index.html?new_id="+row.id+"')\">\n" +
        "                            <div class=\"span-text\">\n" +
        "                                <a class=\"grid-link\" href=\"#\">\n" +
        "                                    <h4>"+row.title+"</h4>\n" +
        "                                    <p>"+row.depict+"</p>\n" +
        "                                </a>\n" +
        "                            </div>\n" +
        "                        </div>\n" +
        "                    </div>"
    }
    function getSsoInfo(url) {
        if($("#gologin").html().indexOf("[注销]")==-1){
            window.open(url);
            return;
        }
        $.post("/getSsoInfo", {},
            function(data){
                // var temp_url = "http://47.92.238.219:8081";
                var sso_url = url+"/zhgsLogin?username="+data.username+"&token="+data.token+"&timestamp="+data.timestamp;
                window.open(sso_url);
            },"json");
    }
</script>
</body>
</html>